package com.yang.entity.commodityDetail;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@Accessors(chain = true)
@Document(collection = "carousel_images")
public class CarouselImages {

    /**
     * 商品轮播图实体类，存放在mongoDB中
     */
    @Id
    private Long id;
    private Long commodityId;
    private List<String> imgUrl;
}
